layui.use(['form','laydate','table','loading'], function () {
    let form = layui.form,
        layer = layui.layer,
        $ = layui.$;


    // laydate.render({elem: '#end_time'});


    //点击发货
    form.on('submit(saveBtn)',function(data){

        let index = layer.open({
            title: '订单发货',
            type: 2,
            shade: 0.2,
            maxmin: true,
            shadeClose: true,
            area: ['50%', '50%'],
            content: '/admin/order/senddetail?id='+$("input[name='id']").val()
        });
        $(window).on("resize", function () {
            layer.full(index);
        });
    })
});